/**
 * 深拷贝对象
 * @param obj 对象
 */
export const deepCopyObject = (obj: Object) => {
  return JSON.parse(JSON.stringify(obj))
}

const mobilePattern = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i
export const isMobile = () => {
  return mobilePattern.test(navigator.userAgent)
}
